package com.atguigu.create.factory.factorymethod.order;

import com.atguigu.create.factory.factorymethod.pizza.BjCheesePizza;
import com.atguigu.create.factory.factorymethod.pizza.BjPepperPizza;
import com.atguigu.create.factory.factorymethod.pizza.Pizza;

public class BjPizzaFactory extends PizzaMethodFactory{
    @Override
    public Pizza createPizza(String orderType) {
        switch (orderType){
            case "cheese":return new BjCheesePizza();
            case "pepper":return new BjPepperPizza();
            default:return null;
        }
    }
}
